package com.mvvm.store.ui.login;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.LiveData;

import com.mvvm.store.base.BaseViewModel;
import com.mvvm.store.base.RepositoryImpl;
import com.mvvm.store.bean.User;
import com.mvvm.store.bean.basebean.ParamsBuilder;
import com.mvvm.store.bean.basebean.Resource;

import java.util.HashMap;

/**
 *
 */
public class LoginViewModel extends BaseViewModel<RepositoryImpl> {
    public LoginViewModel(@NonNull Application application) {
        super(application);
    }

    public LiveData<Resource<User>> login(HashMap<String,Object> map, ParamsBuilder paramsBuilder){
        return getRepository().login(map,paramsBuilder);
    }
}
